﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XYS.Core.Models;
using XYS.Service.Core.Models.APILoggerModels;

namespace XYS.Core.Service.APILoggerService
{
    /// <summary>
    /// API日志通道接口
    /// </summary>
    public interface IAPILogChannel
    {
        /// <summary>
        /// 进入通道
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        ResultModel EnterCannel<T>(IEnumerable<T> request) where T : class, IApiPathField, IResponseBodyField;


        /// <summary>
        /// 进入通道
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task EnterCannel<T>(T request) where T : class, IApiPathField, IResponseBodyField;
    }
}
